package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> findAll();

    List<Integer> findRoleIdsByUserId(Integer id);
    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    List<Integer> findMenuIdsByRoleId(Integer id);

    void deleteById(Integer id);

    Role findById(Integer id);

    List<Permission> findPermission();

    List<Menu> findMenu();
}
